package com.example.java1query.domain.dto;

import com.example.java1query.domain.Hero;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class HeroDto {

    private String heroCode;
    @Enumerated(EnumType.STRING)
    private Hero.Profession profession = Hero.Profession.zhanshi;

    private String communityCode;

    private Integer level = 1;

    private String name;
}


